package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Chat;
import cn.wolfcode.trip.base.query.ChatQuery;
import cn.wolfcode.trip.base.vo.ChatListVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IChatService {

    /**
     * 消息列表页面
     * @param qo
     * @return
     */
    PageInfo<ChatListVO> query(ChatQuery qo);

    /**
     * 修改状态
     * @param id 消息id
     * @param state 状态
     */
    void updateState(Long id, Integer state);

    /**
     * 查看聊天历史记录
     * @param sendUserId
     * @param receiveUserId
     * @return
     */
    List<Chat> chatHistory(Long sendUserId, Long receiveUserId);
}
